home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / Mous / TN.MOUS.002 < prev    next >
Encoding:
Text File  |  1988-12-15  |  2.0 KB  |  50 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Mouse
  8. #2:    Varying VBL Interrupt Rate
  9.  
  10. Revised by:    Matt Deatherage                                  November 1988
  11. Revised by:    Rilla Reynolds                                   November 1985
  12.  
  13. This Technical Note describes a method to make the AppleMouse peripheral card 
  14. interrupt at a rate other than the default 60 Hz.  This method does not work 
  15. on the Apple IIc or IIGS.
  16. _____________________________________________________________________________
  17.  
  18. This Technical Note describes a previously undocumented call to the AppleMouse 
  19. II firmware which allows the user to set the interrupt rate to 50 or 60 Hz.  
  20. (The default is 60 Hz, which keeps the card-generated VBL interrupts 
  21. synchronized with the actual VBL rate on standard North American Apples; 
  22. European Apples use 50 Hz as a standard.)
  23.  
  24.  
  25.     Call:               TimeData
  26.     Offset Location:    $Cn1C
  27.     Input:              Accumulator bit 0:    0 for 60 Hz
  28.                                               1 for 50 Hz
  29.  
  30.     Note:    All other accumulator bits are reserved, and must be set to 0.
  31.  
  32.     Output:             carry bit clear
  33.                         screen holes unchanged
  34.  
  35. You must make this call just prior to calling InitMouse to be effective.  If 
  36. you want to change the interrupt rate in the middle of an application, you 
  37. must call TimeData with the appropriate value in the accumulator, then call 
  38. InitMouse (which generates an interrupt).  InitMouse resets the mouse 
  39. position, mode, clamps, etc. to their default values.  If you fail to call 
  40. TimeData, InitMouse will use a default interrupt rate of 60 Hz.
  41.  
  42. Note:    This call exists only on the AppleMouse card for the IIe or 
  43. ][+ and should only be used when you know you are working with a 
  44. IIe or ][+.  A user may configure a IIGS to 50 Hz by holding down 
  45. the Option key while rebooting.  The standard North American Apple 
  46. IIc will not generate 50 Hz VBL interrupts.
  47.  
  48.  
  49.  
  50.